<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
{#    <link rel="stylesheet" href="/web/static/plugin/bootstrap-3.3.7-dist/css/bootstrap.css">#}
    <link rel="stylesheet" href="/web/static/plugin/bootstrap-3.3.7-dist/css/bootstrap.css">
    <style>
        .account{
            width: 400px;
            margin: 0 auto;
        }
    </style>
</head>
<body>
<div class="account">
    <h1>注册</h1>
        <form>
            {% for feild in form %}
                {% if feild.name == 'code' %}
                    <div class="form-group">
                        <label for="{{ feild.id_for_label }}">{{ feild.label }}</label>
                        <div class="clearfix">
                            <div class="col-md-6" style="padding-left: 0">{{ feild }}</div>
                            <div class="col-md-6"><input type="button" class="btn btn-default" value="点击获取验证码"/> </div>
                        </div>
                    </div>
                {% else %}
                    <div class="form-group">
                        <label for="{{ feild.id_for_label }}">{{ feild.label }}</label>
                        {{ feild }}
                    </div>
                {% endif %}
            {% endfor %}
            <button type="submit" class="btn btn-default">注册</button>
        </form>
</div>
</body>
</html>